import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Test;


public class PokerTest {

	private Player playerTest;
	private Player playerTest1;

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		playerTest = new Player("player");
		playerTest1 = new Player("player");
	}

	@Test
	public final void test() {
		playerTest.cards_in_hand[0] = "K-diamond";
		playerTest.cards_in_hand[1] = "K-club";
		playerTest.cards_in_hand[2] = "2-diamond";
		playerTest.cards_in_hand[3] = "3-club";
		playerTest.cards_in_hand[4] = "4-heart";
		
		playerTest1.cards_in_hand[0] = "K-heart";
		playerTest1.cards_in_hand[1] = "K-spade";
		playerTest1.cards_in_hand[2] = "2-club";
		playerTest1.cards_in_hand[3] = "3-spade";
		playerTest1.cards_in_hand[4] = "4-diamond";
		
		Card cardTest = new Card(playerTest);
		Card cardTest1 = new Card(playerTest1);
		if(cardTest.player_score > cardTest1.player_score) assertTrue(" poprawnie ",true);
		else fail("zle");
		
	}

}
